package com.entity;

import java.util.Date;
import java.util.List;

/**
 * @author james-CAO
 * @title: Orders
 * @projectName csm_emall_ssm
 * @description: 项目描述
 * @date 2020/10/13 19:03
 */
public class Order {
    /** 订单状态 - 未支付 */
    public static final byte STAUS_UNPAY = 1;
    /** 订单状态 - 已支付 */
    public static final byte STAUS_PAYED = 2;
    /** 订单状态 - 配送中 */
    public static final byte STAUS_SEND = 3;
    /** 订单状态 - 已完成 */
    public static final byte STAUS_FINISH = 4;

    /** 支付方式 - 微信 */
    public static final byte PAYTYPE_WECHAT = 1;
    /** 支付方式 - 支付宝 */
    public static final byte PAYTYPE_ALIPAY = 2;
    /** 支付方式 - 下线 */
    public static final byte PAYTYPE_OFFLINE = 3;


    private int id;

    private int total;

    private int amount;

    private byte status;

    private byte paytype;

    private String name;

    private String phone;

    private String address;

    private Date systime;

    private int userId;

    private List<Items> itemList;

    public static byte getStausUnpay() {
        return STAUS_UNPAY;
    }

    public static byte getStausPayed() {
        return STAUS_PAYED;
    }

    public static byte getStausSend() {
        return STAUS_SEND;
    }

    public static byte getStausFinish() {
        return STAUS_FINISH;
    }

    public static byte getPaytypeWechat() {
        return PAYTYPE_WECHAT;
    }

    public static byte getPaytypeAlipay() {
        return PAYTYPE_ALIPAY;
    }

    public static byte getPaytypeOffline() {
        return PAYTYPE_OFFLINE;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public byte getPaytype() {
        return paytype;
    }

    public void setPaytype(byte paytype) {
        this.paytype = paytype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getSystime() {
        return systime;
    }

    public void setSystime(Date systime) {
        this.systime = systime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public List<Items> getItemList() {
        return itemList;
    }

    public void setItemList(List<Items> itemList) {
        this.itemList = itemList;
    }
}
